<template>
  <div class="flex space-x-4">
    <a-button type="primary" @click="postMessageToMainProcess"> 给主进程发布一条消息 </a-button>
  </div>
</template>

<script setup>
  // import { ipc } from '$lib/sugar-electron';
  // const { ipc } = require('sugar-electron');

  async function postMessageToMainProcess() {
    // const res = await ipc.request('main', 'home_view', 'home view message222');
    // console.log(111, res);
  }
</script>
